﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemWFH.Domain;

namespace SystemWFH.Infrstructer.Interface
{
    public interface IMaintenanceRepository:IBaseRepository<Maintenance>
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="maintenance"></param>
        /// <returns></returns>
        Task<int> AddedAsync(Maintenance maintenance);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="maintenance"></param>
        /// <returns></returns>
        Task<int> UpdateAsync(Maintenance maintenance);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="maintenanceId"></param>
        /// <returns></returns>
        Task<int> DeleteAsync(int maintenanceId);
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        Task<List<Maintenance>> GetAllAsync();
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteByIdAsync(int id);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="maintenanceId"></param>
        /// <returns></returns>
        Task<Maintenance> GetByIdAsync(int maintenanceId);
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="maintenanceId"></param>
        /// <returns></returns>
        Task<int> MaintenanceDeletePi(string maintenanceId);
    }
}
